# class parent():
#     def __init__(self):
#         self.p = "我是父亲"
#     def f(self):
#         print('这是爸爸')

# class child(parent):
#     def __init__(self):
#         self.c = "我是子类"
#     def t(self):
#         print(self.c,"我要继承")

# a = child()
# a.t()
# a.f()

class parent():
    def __init__(self):
        self.p = "我是父亲"
    def f(self):
        print('财产')

class child(parent):
    def __init__(self):
        self.c = "我是子类"
    def f(self):
        print(self.c,"我要继承")

a = child()
a.f()
super(child,a).f()